﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="adblock2tplWebConverter.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        Konwerter list filtrów AdBlock Plus na listy TPL (Tracking Protection List).
        <asp:RadioButtonList ID="RadioButtonList1" runat="server" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged"
            RepeatDirection="Horizontal" AutoPostBack="True">
            <asp:ListItem>z pliku</asp:ListItem>
            <asp:ListItem>z URLa</asp:ListItem>
        </asp:RadioButtonList>
        <asp:MultiView ID="MultiView1" runat="server">
            <asp:View ID="View1" runat="server">
                <asp:Label ID="Label1" runat="server" Text="Plik z filtrami AdBlock Plus: "></asp:Label>
                <asp:FileUpload ID="FileUpload1" runat="server" />
                <br />
                <asp:Button ID="ButtonConvertFromFile" runat="server" Text="Konwertuj do TPL" OnClick="ButtonConvertFromFile_Click" />
            </asp:View>
            <asp:View ID="View2" runat="server">
                <asp:Label ID="Label2" runat="server" Text="Adres URL pliku z filtrami AdBlock Plus: "></asp:Label>
                <asp:TextBox ID="TextBoxAdBlockFilterURL" runat="server"></asp:TextBox>
                <asp:Label ID="LabelError" runat="server" ForeColor="Red"></asp:Label>
                <br />
                <asp:Button ID="ButtonConvertFromURL" runat="server" Text="Konwertuj do TPL" OnClick="ButtonConvertFromURL_Click" />
            </asp:View>
        </asp:MultiView>
    </div>
    </form>
</body>
</html>
